package com.qms.repast.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * @author 泅渡者
 * @date 2018/9/5 0005
 * @describe:
 */
public class RecycleViewItemData<T> implements MultiItemEntity {
	/**
	 * 简单布局
	 */
	public static final int TYPE_NORMAL_LAYOUT = 1;
	/**
	 * 广告类型
	 */
	public static final int TYPE_AD_LAYOUT = 2;
	/**
	 * 封装各种不同类型的Bean
	 */
	T t;
	/**
	 * 对象类型
	 */
	private int itemType;

	public RecycleViewItemData (T t, int itemType) {
		this.t = t;
		this.itemType = itemType;
	}

	public T getT () {
		return t;
	}

	public void setT (T t) {
		this.t = t;
	}

	public void setItemType (int itemType) {
		this.itemType = itemType;
	}

	@Override
	public int getItemType () {
		return itemType;
	}
}
